//
//  AppDelegate.swift
//  YMicroBlog
//
//  Created by Yang on 2018/9/22.
//  Copyright © 2018年 Yang. All rights reserved.
//

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

    var window: UIWindow?


    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
        //实例化window并指定大小
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        //设置颜色
        window?.backgroundColor = UIColor.greenColor()
        
        //调用view控制器
        window?.rootViewController = YTabBarController()
        
        //设置窗口可见
        window?.makeKeyAndVisible()
        return true
    }

}

